package com.icoolkj.ms.api.pay.feign;

import com.icoolkj.ms.common.core.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 会员服务Feign客户端
 *
 * @author icoolkj
 */
@FeignClient(name = "icoolkj-ms-member", contextId = "memberClient")
public interface MemberFeignClient {

    /**
     * 更新会员余额
     *
     * @param memberId 会员ID
     * @param amount 金额
     * @return 操作结果
     */
    @PostMapping("/member/balance/update")
    ServerResponseEntity<Boolean> updateBalance(@RequestParam("memberId") Long memberId, 
                                              @RequestParam("amount") BigDecimal amount);
} 